package com.quan.admin.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 系统-即时消息-用户消息
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2020-08-20 22:56:51
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_message_to_user")
public class SysMessageToUser implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
    @TableId
    private Long id;

	/**
	 * 用户ID
	 */
    @NotBlank(message = "用户ID不能为空")
    private Long userId;

	/**
	 * 消息ID
	 */
    @NotBlank(message = "消息ID不能为空")
    private Long messageId;

	/**
	 * 消息状态：1->未读，2->已读
	 */
    private Integer status;


}
